import request from '@/utils/request'

// 查询术中清点记录列表
export function listDetail(query) {
  return request({
    url: '/manage/detail/list',
    method: 'get',
    params: query
  })
}

// 查询术中清点记录详细
export function getDetail(surgeryDeviceDetailId) {
  return request({
    url: '/manage/detail/' + surgeryDeviceDetailId,
    method: 'get'
  })
}

// 新增术中清点记录
export function addDetail(data) {
  return request({
    url: '/manage/detail',
    method: 'post',
    data: data
  })
}

// 修改术中清点记录
export function updateDetail(data) {
  return request({
    url: '/manage/detail',
    method: 'put',
    data: data
  })
}

// 删除术中清点记录
export function delDetail(surgeryDeviceDetailId) {
  return request({
    url: '/manage/detail/' + surgeryDeviceDetailId,
    method: 'delete'
  })
}
